package com.qww.supplement.singleton;

import com.qww.supplement.singleton.type1.Hungry;

public class Test06 {

    public static void main(String[] args) {
        Hungry instance = Hungry.getInstance();
        System.out.println(instance == new A().f());
    }
}

class A {
    public Hungry f(){
        return Hungry.getInstance();
    }
}